package com.client;

import com.common.ChannelHandlerContext;
import com.common.SimpleChannelInboundHandler;

/**
 * 客户端消息处理
 */
public class ClientHandler extends SimpleChannelInboundHandler<String> {

	protected void messageReceived(ChannelHandlerContext ctx, String msg) throws Exception {
		System.out.println("客户端收到消息:"+msg);
	}

	@Override
	protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
		System.out.println("客户端收到消息:"+msg);
		
	}

}
